package com.jeff.tianti.cms.dao;

import com.jeff.tianti.cms.entity.Answers;
import com.jeff.tianti.common.dao.CommonDao;
import com.jeff.tianti.common.entity.PageModel;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;

/**
 * @author xujianfang
 * @desc AnswersDao接口 
 * @date 2019-07-19
 */
public interface AnswersDao extends AnswersDaoCustom,CommonDao<Answers,String>{
    @Query(" from Answers a where a.queUid = ?1 ")
    Page<Answers> findPageByqueUid(String uid, Pageable pageable);
    @Query(" from Answers a where a.uid = ?1 ")
    Page findPageByUid(String uid, Pageable pageable);
}